import { defineStore } from 'pinia'

interface OpenLoginState {
  //登录窗口显示隐藏
  openLogin: boolean
   //qr二维码
   qrUrl: string

}
export const useLoginStore = defineStore('useLogin', {
  state: (): OpenLoginState => ({
    openLogin: false,
    qrUrl: '',
  }),
  actions: {
    //登录窗口显示隐藏切换
    setOpenLoginToTrue() {
      this.openLogin = true
    },
    setOpenLoginToFalse() {
      this.openLogin = false
    },
  },
})
